Skip to content

Comments

Make all options optional and update RequestOptions#70

Merged
zack13532 merged 3 commits intomainfrom
07-23-make_all_options_optional_and_update_requestoptions
Jul 24, 2025
Merged

Make all options optional and update RequestOptions#70
zack13532 merged 3 commits intomainfrom
07-23-make_all_options_optional_and_update_requestoptions

Conversation

@zack13532
Copy link
Contributor

@zack13532 zack13532 commented Jul 24, 2025

Summary

https://github.com/tecton-ai/tecton/pull/31995 added a new request option that users can set when making calls to the Feature Server HTTP API, and we should port this (and other options that have been added) to our clients as well.

Additionally decided to make the attributes of MetadataOptions and RequestOptions optional values to better reflect the HTTP API, and to fallback to the default values defined by the service.

  • Updated MetadataOptions and RequestOptions class to use Optional with None as default values instead of hardcoded boolean defaults
    • Kept MetadataOptions.all() as-is
  • Modified the to_request() method in each to only include parameters that are explicitly set
  • Enhanced RequestOptions class with three new parameters:
    • ignore_extra_request_context_fields
    • latency_budget_ms
    • coerce_null_counts_to_zero

Linear

ref RT-2159

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@zack13532 zack13532 marked this pull request as ready for review July 24, 2025 02:09
@zack13532 zack13532 requested a review from solbrigm July 24, 2025 03:22
@solbrigm
Copy link
Collaborator

Can you add context for why you are making this change to the PR? Is this a user request or just for parity?

Copy link
Contributor Author

Updated - basically just for parity.

Copy link
Contributor Author

zack13532 commented Jul 24, 2025

Merge activity

  • Jul 24, 3:35 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 24, 3:35 AM UTC: @zack13532 merged this pull request with Graphite.

@zack13532 zack13532 merged commit 056136b into main Jul 24, 2025
7 checks passed
@zack13532 zack13532 deleted the 07-23-make_all_options_optional_and_update_requestoptions branch July 24, 2025 03:35
zack13532 added a commit that referenced this pull request Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants